<?php
/**
 * Blago functions and definitions
 *
 * @link https://developer.wordpress.org/themes/basics/theme-functions/
 *
 * @package Blago
 */

if ( ! defined( '_S_VERSION' ) ) {
	// Replace the version number of the theme on each release.
	define( '_S_VERSION', '1.0.0' );
}
add_action( 'after_setup_theme', 'pilgrimage_service_setup' );

/**
 * Настройки navigation ↓
 */

require get_template_directory() . '/includes/navigation.php';


/**
 * Настройки темы dabro ↓
 */

require get_template_directory() . '/includes/helpers.php';

/**
 * Настройки виджитов ↓
 */
require get_template_directory() . '/includes/widget-areas.php';
 
 add_action( 'after_setup_theme', 'pilgrimage_service_content_width', 0 );

/**
 * подключения скриптов ↓
 */
require get_template_directory() . '/includes/enqueuue-script-style.php';
/**
 * Implement the Custom Header feature.
 */
require get_template_directory() . '/includes/custom-header.php';

/**
 * Custom template tags for this theme.
 */
require get_template_directory() . '/includes/template-tags.php';

/**
 * Functions which enhance the theme by hooking into WordPress.
 */
require get_template_directory() . '/includes/template-functions.php';

/**
 * Customizer additions.
 */
require get_template_directory() . '/includes/customizer.php';


/**
 * Customizer post .
 */
require get_template_directory() . '/includes/blago_tour_settings.php';


/**
 * remov .
 */
require get_template_directory() . '/includes/remov.php';


/**
 * Load Jetpack compatibility file.
 */
if ( defined( 'JETPACK__VERSION' ) ) {
	require get_template_directory() . '/includes/jetpack.php';
}

/**
 * Подключаем carbon fields ↓
 */
// add_action( 'after_setup_theme', 'crb_load' );
// function crb_load() {
//     require_once( '/includes/carbon-fields/vendor/autoload.php' );
//     \Carbon_Fields\Carbon_Fields::boot();
// }
add_action('carbon_fields_register_fields', 'ast_register_custom_fields');
function ast_register_custom_fields(){
    require get_template_directory() . '/includes/custom-fieldes-options/trip_settings.php';
    // require get_template_directory() . '/includes/custom-fieldes-options/contacts_settings.php';
    
	
}

require get_template_directory() . '/includes/custom-fieldes-options/theme-opteons.php';